package com.ruoyi.zhongkao.service.impl;

import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zhongkao.mapper.ZkCandidateCategoryMapper;
import com.ruoyi.zhongkao.domain.ZkCandidateCategory;
import com.ruoyi.zhongkao.service.IZkCandidateCategoryService;

/**
 * 考生类别Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-04
 */
@Service
public class ZkCandidateCategoryServiceImpl implements IZkCandidateCategoryService 
{
    @Autowired
    private ZkCandidateCategoryMapper zkCandidateCategoryMapper;


    @Override
    public List<ZkCandidateCategory> selectZkCandidateCategoryAll() {
        return zkCandidateCategoryMapper.selectZkCandidateCategoryAll();
    }

    /**
     * 查询考生类别
     * 
     * @param id 考生类别主键
     * @return 考生类别
     */
    @Override
    public ZkCandidateCategory selectZkCandidateCategoryById(Long id)
    {
        return zkCandidateCategoryMapper.selectZkCandidateCategoryById(id);
    }

    /**
     * 查询考生类别列表
     * 
     * @param zkCandidateCategory 考生类别
     * @return 考生类别
     */
    @Override
    public List<ZkCandidateCategory> selectZkCandidateCategoryList(ZkCandidateCategory zkCandidateCategory)
    {
        return zkCandidateCategoryMapper.selectZkCandidateCategoryList(zkCandidateCategory);
    }

    /**
     * 新增考生类别
     * 
     * @param zkCandidateCategory 考生类别
     * @return 结果
     */
    @Override
    public int insertZkCandidateCategory(ZkCandidateCategory zkCandidateCategory)
    {
        return zkCandidateCategoryMapper.insertZkCandidateCategory(zkCandidateCategory);
    }

    /**
     * 修改考生类别
     * 
     * @param zkCandidateCategory 考生类别
     * @return 结果
     */
    @Override
    public int updateZkCandidateCategory(ZkCandidateCategory zkCandidateCategory)
    {
        return zkCandidateCategoryMapper.updateZkCandidateCategory(zkCandidateCategory);
    }

    /**
     * 批量删除考生类别
     * 
     * @param ids 需要删除的考生类别主键
     * @return 结果
     */
    @Override
    public int deleteZkCandidateCategoryByIds(Long[] ids)
    {
        return zkCandidateCategoryMapper.deleteZkCandidateCategoryByIds(ids);
    }

    /**
     * 删除考生类别信息
     * 
     * @param id 考生类别主键
     * @return 结果
     */
    @Override
    public int deleteZkCandidateCategoryById(Long id)
    {
        return zkCandidateCategoryMapper.deleteZkCandidateCategoryById(id);
    }

    @Override
    public ZkCandidateCategory selectZkCandidateCategoryByCode(String code) {
        return zkCandidateCategoryMapper.selectZkCandidateCategoryByCode(code);
    }
}
